/**
 * @Project Name: ${projectName}
 * @Package Name: ${projectPackageName}.business.convert.${domainName}
 * @Since JDK 1.8
 */
package ${projectPackageName}.business.convert.${domainName};

import ${projectPackageName}.business.domain.dto.${domainName}.${className}DTO;
import ${projectPackageName}.business.model.po.${domainName}.${className}PO;
import org.springframework.beans.BeanUtils;
import org.springframework.util.CollectionUtils;

import java.util.List;

/**
 * @Description: ${className}Converter
 * @Author 胡松 hoofungson@163.com
 * @Date ${datetime}
 * @Version V1.0
 */
public class ${className}Converter {

    private ${className}Converter() {
    }

    /**
    * 转换
    *
    * @param ${lowerCaseClassName}POList
    * @param ${lowerCaseClassName}DTOList
    **/
    public static void convert(List<${className}PO> ${lowerCaseClassName}POList, List<${className}DTO> ${lowerCaseClassName}DTOList) {
      if (CollectionUtils.isEmpty(${lowerCaseClassName}POList) || null == ${lowerCaseClassName}POList) {
          return;
      }
        ${lowerCaseClassName}POList.forEach(${lowerCaseClassName}PO -> {
          ${className}DTO ${lowerCaseClassName}DTO = new ${className}DTO();
          BeanUtils.copyProperties(${lowerCaseClassName}PO, ${lowerCaseClassName}DTO);
        ${lowerCaseClassName}DTOList.add(${lowerCaseClassName}DTO);
      });
    }
}